import {View, Text, StyleSheet, ViewStyle, TouchableOpacity, TouchableOpacityProps} from 'react-native'
import React, {Component} from 'react'
import {statusHeight} from "../../style";
import Icon from 'react-native-vector-icons/Feather';

interface CommonIconBtnProps extends TouchableOpacityProps{
    icon: {
        size: number,
        name: string,
        color: string
    },

}

interface CommonIconBtnState {

}


export default class CommonIconBtn extends Component<CommonIconBtnProps, CommonIconBtnState> {


    constructor(props: CommonIconBtnProps) {
        super(props);
    }

    render() {
        const {icon} = this.props;
        return (<TouchableOpacity {...this.props}>
            <Icon {...icon}/>
        </TouchableOpacity>)
    }
}

const style = StyleSheet.create({
    container: {}
});

 